#include <iostream>
#include <vector>

using namespace std;

class score {
public:
        int id;
        int ch;
        int math;
        friend ostream &operator<<(ostream &, const score &);
};

ostream &operator<<(ostream &os, const score &d)
{
        os << "(" << d.id << "," << d.ch << "," << d.math << ")";
        return os;
}

int main()
{
        vector<score> vec;
        score tmp;

        for (int i = 0; i < 9; i++) {
                tmp.id = i;
                tmp.ch = 100 - i;
                tmp.math = 100 - 2 * i;
                vec.push_back(tmp);
        }

        cout << vec[3] << endl;

        for (int i = 0; i < vec.size(); i++) {
                cout << vec[i] << ' ';
        }
        cout << endl;

        vector<score>::iterator it;
        for (it = vec.begin(); it != vec.end(); it++) {
                cout << *it << ' ';
        }
        cout << endl;

        vec.clear();

        return 0;
}
